/**
 * 
 */
$(function(){
	var trigger = $('.hamburger'), isClosed = false;
	trigger.click(function() {
		hamburger_cross();
	});

	function hamburger_cross() {
		if (isClosed == true) {
			trigger.removeClass('is-closed');
			trigger.addClass('is-open');
			isClosed = false;
		} else {
			trigger.removeClass('is-open');
			trigger.addClass('is-closed');
			isClosed = true;
		}
	}
	
	$('[data-toggle="offcanvas"]').click(function() {
		$('#wrapper').toggleClass('toggled');
	});
	
})